package ai.assist.common.exception;

/**
 * es执行失败异常
 */
public class EsExecuteException extends RuntimeException {

    private String code;

    public EsExecuteException(String message) {
        super(message);
    }

    public EsExecuteException(String code, String message) {
        super(message);
        this.code = code;
    }

    public EsExecuteException(String message, Throwable arg) {
        super(message, arg);
    }

    public String getCode() {
        return code;
    }

}
